﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListCriterionForGroupCustomer.ascx.cs"
    Inherits="Hutech.CRM.Web.Controls.ManageLevelCustomers.ListCriterionForGroupCustomer" %>
<%@ Register Src="AddNewCriterionCustomer.ascx" TagName="AddNewCriterionCustomer"
    TagPrefix="uc1" %>
<%--<asp:UpdatePanel ID="pnlMain" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
    <ContentTemplate>--%>
        <div>
            ROOT</div>
        <asp:ImageButton ID="ImageButtonAddNew" CssClass="ImageButtonNew-32 ImageButton"
            ImageUrl="~/Resources/img/none-32.png" runat="server" Text="New" ToolTip="Thêm mới" />
        Them mot vai nut de add du lieu root o day
        <br />
        He thong sau khi cap nhat o day se cap nhat lai du lieu khach hang, do do phai cau
        hinh can than cac tieu chi truoc khi thuc hien thay doi
        <asp:DataList ID="DataListCriterionCustomer" DataKeyField="CriterionGuid" runat="server">
            <ItemTemplate>
                <asp:Panel ID="PanelLine" runat="server" >
                    <asp:HiddenField ID="HiddenFieldIsActive" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "IsActive") %>' />
                    <asp:ImageButton ImageUrl='<%# EditPropertiesImage %>' CommandName="EditCommand"
                        AlternateText="<%# Resources.Resource.RolesEditLabel %>" ToolTip="<%# Resources.Resource.RolesEditLabel %>"
                        runat="server" ID="ImageButtonEdit" />&nbsp;&nbsp;
                    <asp:ImageButton ImageUrl='<%# DeleteLinkImage %>' CommandName="DeleteCommand" AlternateText="<%# Resources.Resource.RolesDeleteLabel %>"
                        ToolTip="<%# Resources.Resource.RolesDeleteLabel %>" runat="server" ID="ImageButtonDelete"
                        OnClientClick="return confirm('Bạn đã chọn xoá dữ liệu...?');" />
                    <%# DataBinder.Eval(Container.DataItem, "Symbols")%><%# DataBinder.Eval(Container.DataItem, "CriterionName")%>
                </asp:Panel>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:HiddenField ID="HiddenFieldKeyGroupLevel" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "GroupLevelCustomerGuid") %>' />
                <asp:DropDownList ID="DropDownListGroupLevelCustomer" Width="200" runat="server" />
                <br />
                <asp:TextBox ID="TextBoxCriterionName" Width="400" Text='<%# DataBinder.Eval(Container.DataItem, "CriterionName") %>'
                    runat="server" />
                <asp:CheckBox ID="CheckBoxIsActive" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "IsActive") %>' />
                <asp:ImageButton ID="ImageButtonSave" CssClass="ImageButtonSave-32 ImageButton" ImageUrl="~/Resources/img/none-32.png"
                    runat="server" Text="Save" ToolTip="Lưu" CommandName="ApplyCommand" />
                <asp:ImageButton ID="ImageButtonExit" CssClass="ImageButtonExit-32 ImageButton" ImageUrl="~/Resources/img/none-32.png"
                    runat="server" Text="Exit" ToolTip="Thoát" CommandName="CancelCommand" />
            </EditItemTemplate>
        </asp:DataList>
        <uc1:AddNewCriterionCustomer ID="AddNewCriterionCustomer1" runat="server" />
<%--    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="ImageButtonAddNew" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="AddNewCriterionCustomer1" EventName="Reload_EventAgrs" />
        <asp:AsyncPostBackTrigger ControlID="DataListCriterionCustomer" EventName="ItemCommand" />
        <asp:AsyncPostBackTrigger ControlID="DataListCriterionCustomer" EventName="ItemDataBound" />
    </Triggers>
</asp:UpdatePanel>--%>



